package com.sdjzu.university.service;

import com.sdjzu.university.entity.Professional;
import com.sdjzu.university.entity.University;
import com.sdjzu.university.mapper.ProfessionalMapper;
import com.sdjzu.university.mapper.UniversityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProfessionalServicelmpl implements ProfessionalService {
   private final ProfessionalMapper professionalMapper;
   public ProfessionalServicelmpl(ProfessionalMapper professionalMapper){
       this.professionalMapper=professionalMapper;
   }


    @Override
    public List<Professional> selectList() {
        return professionalMapper.selectList(null);
    }

    @Override
    public int insert() {
        return professionalMapper.insert();
    }

    @Override
    public int update() {
        return professionalMapper.update();
    }

    @Override
    public int delete() {
        return professionalMapper.delete();
    }
}